package com.zyl.Ecs.common.domain.device.ext;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zyl.Ecs.common.domain.device.bean.SensorType;
import com.zyl.Ecs.common.utils.CUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * @version v1.0
 * @ProjectName: Ecs
 * @Package: com.zyl.Ecs.device.domain.ext
 * @ClassName: SensorTypeExt
 * @Description TODO (传感器类型扩展类)
 * @Author 翟玉龙
 * @Date 2024/12/5-9:34
 */
@Data
@SuperBuilder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "ecs_sensor_type")
public class SensorTypeExt extends SensorType {

    public static SensorTypeExt toExt(SensorType sensorType) {
        return CUtil.copyBean(sensorType, SensorTypeExt.class);
    }

}